<h1><?= __('Repertoire') ?></h1>
<p>
    <?= $this->Html->link('+'.__('new') . ' ' . mb_strtolower(__('Repertoire')), '/repertoire/create') ?> |
    <?= $this->Html->link(strtotitle(__('events')), '/events') ?> |
    <?= $this->Html->link(strtotitle(__('guests')), '/guests') ?>
</p>

<? if(count($repertoire)): ?>
<table>
    <tr>
        <th><?= __('name') ?></th>
        <th width="1%"></th>
    </tr>
    <? foreach($repertoire as $item): ?>
    <? $id = $item['Repertoire']['id'] ?>
    <tr>
        <td><?= $this->Html->link($item['Repertoire']['name'], '/repertoire/edit/' . $id) ?></td>
        <td>
            <?= $this->Html->link(__('delete'), array('action'=>'delete', $id), array(
                'confirm' => __("Do you want to delete") . " " . __("Repertoire") . "?"
            )) ?>
        </td>
    </tr>
    <? endforeach; ?>
</table>
<?= $this->element("pagination", array(
    "total" => $total,
    "page" => $page
)) ?>
<? else: ?>
<p><?= __('no records') ?>.</p>
<? endif; ?>